package com.itheima.day11.charstream.test8;

import java.io.BufferedReader;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;

public class Test {
    public static void main(String[] args) throws IOException {
        BufferedReader br = new BufferedReader(new FileReader("myCode\\src\\com\\itheima\\day11\\C.txt"));

        // method1(br);

        String line;
        while((line = br.readLine()) != null){
            System.out.println(line);
        }
    }

    private static void method1(BufferedReader br) throws IOException {
        String line1 = br.readLine();
        String line2 = br.readLine();
        String line3 = br.readLine();
        String line4 = br.readLine();

        System.out.println(line1);
        System.out.println(line2);
        System.out.println(line3);
        System.out.println(line4);
    }
}
